﻿using UnityEngine;

namespace UFrame
{

    public class BaseDataMB : MonoBehaviour //  where T : BaseDataPOD
    {

        [SerializeField]
        public BaseDataPOD data;

        public T GetData<T>() where T : BaseDataPOD
        {
            return data as T;
        }

        private void Start()
        {
            /*if (data == null)
            {
                data = GetComponent<BaseLivingObj>().dataPOD;
            }*/
        }
    }

}
